/**
 * @author furthurr
 */
var win = Titanium.UI.currentWindow;
win.backgroundColor = 'white';
win.backgroundImage = '../imgs/WallMenu.png';
var bl1 = Titanium.UI.createLabel({
	text: 'Quienes somos',
	backgroundlColor: 'transparent',
	width:'145',
	height:'auto',
	right:2,
	font:{fontSize:13, fontFamily:'AppleGothic'},
    	textAlign:'center'	
}); 
var bt1 = Titanium.UI.createButtonBar({
	//backgroundImage: '../imgs/bquiensomos.png',
	style:Titanium.UI.iPhone.SystemButtonStyle.BAR,
	labels:[''],
	top:278,
	left:0,
        backgroundColor:'#C0C0C0', 
	height:25,
	width:155,
	
});
bt1.add(bl1);
var bl2 = Titanium.UI.createLabel({
	text: 'Licenciaturas ',
	backgroundlColor: 'transparent',
	width:'145',
	height:'auto',
	right:2,
	font:{fontSize:13, fontFamily:'AppleGothic'},
    	textAlign:'center'	
}); 
var bt2 = Titanium.UI.createButtonBar({
	//backgroundImage: '../imgs/bquiensomos.png',
	style:Titanium.UI.iPhone.SystemButtonStyle.BAR,
	labels:[''],
	top:311,
	 backgroundColor:'#C0C0C0', 
	height:25,
	width:155,	
	left:0
});
bt2.add(bl2);
var bl3 = Titanium.UI.createLabel({
	text: 'Maestrias ',
	backgroundlColor: 'transparent',
	width:'145',
	height:'auto',
	right:2,
	font:{fontSize:13, fontFamily:'AppleGothic'},
    	textAlign:'center'	
});
var bt3 = Titanium.UI.createButtonBar({
	//backgroundImage: '../imgs/bquiensomos.png',
	style:Titanium.UI.iPhone.SystemButtonStyle.BAR,
	labels:[''],
	top:344,
	backgroundColor:'#C0C0C0', 
	height:25,
	width:155,	
	left:0
});
bt3.add(bl3);
var bl4 = Titanium.UI.createLabel({
	text: 'Doctorados',
	backgroundlColor: 'transparent',
	width:'145',
	height:'auto',
	right:2,
	font:{fontSize:13, fontFamily:'AppleGothic'},
    	textAlign:'center'	
});
var bt4 = Titanium.UI.createButtonBar({
	//backgroundImage: '../imgs/bquiensomos.png',
	style:Titanium.UI.iPhone.SystemButtonStyle.BAR,
	labels:[''],
	top:377,
	backgroundColor:'#C0C0C0', 
	height:25,
	width:155,	
	left:0
});
bt4.add(bl4);
var bl5 = Titanium.UI.createLabel({
	text: 'Contacto ',
	backgroundlColor: 'transparent',
	width:'145',
	height:'auto',
	right:2,
	font:{fontSize:13, fontFamily:'AppleGothic'},
    	textAlign:'center'	
});
var bt5 = Titanium.UI.createButtonBar({
	//backgroundImage: '../imgs/bquiensomos.png',
	style:Titanium.UI.iPhone.SystemButtonStyle.BAR,
	labels:[''],
	top:410,
	backgroundColor:'#C0C0C0', 
	height:25,
	width:155,	
	left:0
});
bt5.add(bl5);
win.add(bt1);
win.add(bt2);
win.add(bt3);
win.add(bt4);
win.add(bt5);


//EVENTOS
bt1.addEventListener('click',function (e){
	Titanium.API.info("bt1 ... clicked");
	var Quienes = Titanium.UI.createWindow({
		url:'../ModQuienes/appQuienes.js'
	});
	Quienes.open({transition:Ti.UI.iPhone.AnimationStyle.CURL_UP});
});
bt2.addEventListener('click',function (e){
	Titanium.API.info("bt2 ... clicked");
	var Licenciaturas= Titanium.UI.createWindow({
			url:'../ModLicenciaturas/appLicenciaturas.js'		
		});
	Licenciaturas.open({transition:Ti.UI.iPhone.AnimationStyle.CURL_UP});
});
bt3.addEventListener('click',function (e){
	Titanium.API.info("bt3 ... clicked");
	var Maestrias = Titanium.UI.createWindow({
		url:'../ModMaestrias/appMaestrias.js'
	});
	Maestrias.open({transition:Ti.UI.iPhone.AnimationStyle.CURL_UP});
});
bt4.addEventListener('click',function (e){
	Titanium.API.info("bt4 ... clicked");
	var Doctorados = Titanium.UI.createWindow({
		url:'../ModDoctorados/appDoctorados.js'
	});
	Doctorados.open({transition:Ti.UI.iPhone.AnimationStyle.CURL_UP});
});
bt5.addEventListener('click',function (e){
	Titanium.API.info("bt5 ... clicked");
	var Contacto = Titanium.UI.createWindow({
		url:'../ModContacto/appContacto.js'
	});
	Contacto.open({transition:Ti.UI.iPhone.AnimationStyle.CURL_UP});
});
